import axios from '@/libs/api.request'

export const getPaper_questionList = (seachParams) => {
  return axios.request({
    url: 'paper_questions',
    method: 'get',
    params: seachParams
  })
}




export const getPaper_question = (id) => {
  return axios.request({
    url: 'paper_questions/' + id,
    method: 'get'
  })
}

export const addPaper_question = (data) => {
  return axios.request({
    url: 'paper_questions',
    method: 'post',
    data: data
  })
}

export const updatePaper_question = (id, data) => {
  return axios.request({
    url: 'paper_questions/'+id,
    method: 'put',
    data: data
  })
}

export const deletePaper_question = (id) => {
  return axios.request({
    url: 'paper_questions/'+id,
    method: 'delete'
  })
}